package com.tony.blog.model.request;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: UserRequest
 * @Auther: 皮蛋布丁
 * @Date: 2021/08/18/20:57
 * @Description: 前端用户注册
 */
@Data
public class UserRequest implements Serializable {

    private Long userId;

    //@NotBlank(message="用户名不能为空!")
    private String username;

    //@NotBlank(message="用户昵称不能为空!")
    private String name="游客";

    @NotBlank(message="用户密码不能为空!")
    private String password;

    @NotBlank(message="邮箱不能为空!")
    private String email;

    private Integer status;

    //身份类型:0-用户;1-管理员
    private Integer type;

    private String imgUrl;
}
